import request from "./request";

export function get(url, params = {}, config) {
  return request(
    Object.assign(
      {
        method: "get",
        url,
        params,
      },
      config
    )
  );
}

export function post(url, data = {}, config) {
  return request(
    Object.assign(
      {
        method: "post",
        url,
        data,
      },
      config
    )
  );
}

export function put(url, data = {}, config) {
  return request(
    Object.assign(
      {
        method: "put",
        url,
        data,
      },
      config
    )
  );
}
